package com.rati.usercenter.mapper;

import com.rati.usercenter.model.domain.Team;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.rati.usercenter.model.domain.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author Lwh
 * @description 针对表【team(队伍)】的数据库操作Mapper
 * @createDate 2022-12-23 12:32:35
 * @Entity com.rati.usercenter.model.domain.Team
 */
public interface TeamMapper extends BaseMapper<Team> {

    /**
     * 修改队伍队长
     *
     * @param teamId      队伍id
     * @param newLeaderId 新队长id
     * @return 是否修改成功
     */
    boolean changeLeader(@Param("teamId") long teamId, @Param("newLeaderId") long newLeaderId);

}




